import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { RouterModule, Routes } from '@angular/router';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { FileUploadModule } from 'ng2-file-upload';

import { NgZorroAntdModule } from 'ng-zorro-antd';
// 布局
import { LayoutHeadComponent } from './shared/layout/header/layout.head.component';
import { LayoutContentComponent } from './shared/layout/content/layout.content.component';
import { LayoutFooterComponent } from './shared/layout/footer/layout.footer.component';
// 404
import { PageNotFoundComponent } from './shared/page-not-found/page-not-found.component';
// 路由
import { PagesRoutingModule } from './pages-routing.module';
import { HomeComponent } from './home/home.component';
import { ExaminationComponent } from './examination/examination.component';
import { OnlyQuestionsComponent } from './only-questions/only-questions.component';
import { FillingQuestionsComponent } from './filling-questions/filling-questions.component';
import { ProgrammeQuestionsComponent } from './programme-questions/programme-questions.component';
import { ErrorCorrectionQuestionsComponent } from './error-correction-questions/error-correction-questions.component';
import { SeveralQuestionsComponent } from './several-questions/several-questions.component';
import { QuestionComponent } from './question/question.component';
import { QuestionDetailComponent } from './question-detail/question-detail.component';
import { QuestionCreateComponent } from './question-create/question-create.component';
import { FileuploadComponent } from './fileupload/fileupload.component';
import { FileuploadListComponent } from './fileupload-list/fileupload-list.component';
import { TaotiComponent } from './taoti/taoti.component';
import { TaotiDetailComponent } from './taoti-detail/taoti-detail.component';
import { AlterTaotiComponent } from './alter-taoti/alter-taoti.component';
import { AlterTaotiDetailComponent } from './alter-taoti-detail/alter-taoti-detail.component';

@NgModule({
    imports: [
        CommonModule,
        HttpClientModule,
        NgZorroAntdModule,
        PagesRoutingModule,
        FormsModule,
        ReactiveFormsModule,
        FileUploadModule
    ],
    declarations: [
        LayoutHeadComponent,
        LayoutFooterComponent,
        PageNotFoundComponent,
        LayoutContentComponent,
        HomeComponent,
        ExaminationComponent,
        OnlyQuestionsComponent,
        FillingQuestionsComponent,
        ProgrammeQuestionsComponent,
        ErrorCorrectionQuestionsComponent,
        SeveralQuestionsComponent,
        QuestionComponent,
        QuestionDetailComponent,
        QuestionCreateComponent,
        FileuploadComponent,
        FileuploadListComponent,
        TaotiComponent,
        TaotiDetailComponent,
        AlterTaotiComponent,
        AlterTaotiDetailComponent
    ],
    exports: [
        LayoutHeadComponent,
        LayoutContentComponent,
        LayoutFooterComponent
    ]
})
export class PagesModule {}
